package com.lesso.lll.sunflower.employee.repository;


import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.lesso.lll.sunflower.employee.entity.Employee;
import org.apache.ibatis.annotations.Mapper;

/**
 * 员工数据访问接口
 */
@Mapper
public interface EmployeeRepository extends BaseMapper<Employee> {
    /**
     * 根据工号查询员工
     * @param employeeId 工号
     * @return 员工信息
     */
    Employee selectByEmployeeId(String employeeId);

    /**
     * 根据身份证号查询员工
     * @param idCard 身份证号
     * @return 员工信息
     */
    Employee selectByIdCard(String idCard);
}    